package yf.mall.service;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.ShopEntity;
import com.yf.service.BaseService;
import yf.mall.entity.UserEntity;
import yf.mall.vo.ShopTypeVo;
import yf.mall.vo.ShopVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * 店铺Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun May 24 13:54:38 CST 2020
 */
public interface ShopService extends BaseService<ShopEntity>{



   /*  List<ShopVo> queryListVo(ShopVo shopVo);

        ShopVo getVo(Long id);*/


   /***********BACK***********/

   ShopEntity openShop(ShopTypeVo shopVo);

    List<ShopEntity> findByType(Integer type);

   void deleteShop(String userCard, UserEntity userEntity);

    void delByShopId(Long[] ids);

    ShopEntity updateShop(ShopTypeVo shopTypeVo);

    /***********API***********/
    ShopEntity findByUserId(Long userId);

    ShopEntity findByName(String name);

    void delShop(Long uid,String card);

    void delRoleBySysUserId( Long sysUserId);



    List<ShopEntity> findAll();
}
